#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr1[5] = { 1,2,3,4,5 }; int arr2[5] = { 6,7,8,9,10 }; int arr[5];
	for (int i = 0; i < 5; i++)
	{
		arr[i] = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = arr[i];
	}
	for (int j = 0; j < 5; j++)
	{
		printf("%d ", arr1[j]);
	}
	printf("\n");
	for (int j = 0; j < 5; j++)
	{
		printf("%d ", arr2[j]);
	}
	return 0;

}